package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理商表
 *
 * @author Sakura
 * @since 2024-08-26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "平台代理商参数")
public class PlatformAgentParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long id;

//    @ApiModelProperty("代理商编号")
//    private String agentNo;

    @ApiModelProperty("上级代理商ID")
    private Long parentId;

    @ApiModelProperty("代理商名称")
    @NotBlank(message = "代理商名称不能为空")
    private String name;

    @ApiModelProperty("店铺照片")
    private String corpImg;

    @ApiModelProperty("公司名称")
    private String corpName;

    @ApiModelProperty(value = "联系人", required = true)
    @NotBlank(message = "联系人名称不能为空")
    private String contact;

    @ApiModelProperty(value = "联系电话", required = true)
    @NotBlank(message = "联系电话不能为空")
    private String mobile;

    @ApiModelProperty("生日")
    private Date birthday;

    @ApiModelProperty("生肖")
    private String zodiac;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("分佣比例（1-100）")
    private BigDecimal commissionRate;

}
